package com.nut.spp.api.admin;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.nut.spp.api.req.MemberLevelRecordQueryReq;
import com.nut.spp.common.Result;
import com.nut.spp.entity.MemberLevelRecord;
import com.nut.spp.service.MemberLevelRecordService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/admin/memberLevelRecord")
public class MemberLevelRecordController {

    @Autowired
    private MemberLevelRecordService memberLevelRecordService;

    @GetMapping("/list")
    public Result<IPage<MemberLevelRecord>> listPage(MemberLevelRecordQueryReq req) {
        return memberLevelRecordService.listPage(req);
    }

}